<!DOCTYPE html>
<html lang="en">
<%
layout("/common/_body.html",{title:'信息查询'}){
%>


<body>
<!-- 页面头部 -->
<div class="header">
    <div class="header_wrap">
        <div class="header_lt">
            <h3>武汉市森林公安大数据平台</h3>
        </div>
        <%
        layout("/common/_bar.html"){}
        %>
    </div>
</div>


<style>
    .info_list li{
        overflow: hidden !important;
    }
</style>
<!-- 中间区域 -->

<div class="main">
    <div class="menu_box">
        <%
        layout("/common/_userMenu.html",{type:3}){}
        %>
        <div class="info_wrap">
            <ul class="info_list">
                <%
                for(var l in list){
                %>
                <li>
                    <div class="td_1"><span class="check"></span></div>
                    <input type="hidden" value="${l.id}"/>
                    <div class="td_2"><a href="/web/desc/${l.id}" class="title">${l.title!}</a></div>
                    <div class="td_3"><span class="user">${l.name!}</span></div>
                    <div class="td_4"><span class="date">${l.cDate!}</span></div>
                </li>
                <% }
                %>
            </ul>
            <div class="infoBtn">
                <span class="check"></span>
                <span class="oneBtn" onclick="deleteNotice()">一键删除</span>
            </div>
        </div>
    </div>
</div>

<!-- 页面底部 -->
<div class="footer">
    <div class="footer_wrap">武汉市森林公安局版权所有</div>
</div>

<%}%>
</body>
<script>

    function deleteNotice() {
        var ids = [];
        $(".check ").each(function () {
            var _this = $(this);
            if (_this.hasClass("checked")) {
                var val = _this.parent().parent().find("input").val();
                ids.push(val)
            }
        })

        if (ids.length > 0) {
            window.location.href = "/web/desc?ids=" + ids.join(",")
        } else {
            alert("请选中值")
        }

    }
</script>
</html>
